import axios from '@/utils/request.js'

// 轮播图
export function getHomeBanner({distributionSite}) {
        return axios({
                url: '/home/banner',
                params: {
                        distributionSite
                }
        })
}

// 新鲜好物
export function getHomeNew() {
        return axios({
                url: '/home/new'
        })
}

// 人气推荐
export function getHot() {
        return axios({
                url: '/home/hot'
        })
}

// 产品列表
export const getGoods = () => {
        return axios({
                url: '/home/goods'
        })
}
